package com.sec.android.app.myfiles.module.download;

import android.content.ClipData;
import android.view.DragEvent;
import android.view.View;
import android.widget.AbsListView;

import com.sec.android.app.myfiles.fragment.AbsMyFilesFragment;
import com.sec.android.app.myfiles.log.Log;
import com.sec.android.app.myfiles.module.abstraction.AbsDragAndDrop;
import com.sec.android.app.myfiles.widget.listview.AbsListViewImp;

public class DownloadDragAndDropImp extends AbsDragAndDrop {

    public DownloadDragAndDropImp(AbsMyFilesFragment fragment, AbsListViewImp listViewImp) {
        super(fragment, listViewImp);
    }

    @Override
    public boolean doDrop(ClipData clipData, int dropPosition) {
        // Do nothing. Download History doesn't support this.
        return false;
    }

    @Override
    protected boolean handleActionDragLocation(View view, DragEvent event, AbsListView listView, int position, int y) {
        Log.a(this, "ACTION_DRAG_LOCATION");
        mNeedChangePointer = true;
        mNoDrop = true;
        updateMousePointerIcon(event);
        return true;
    }
}
